//
//  ZYTencentHandler.h
//  SuiTong
//
//  Created by 石志愿 on 2020/9/3.
//  Copyright © 2020 石志愿. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ZYShareConstans.h"

NS_ASSUME_NONNULL_BEGIN

@interface ZYTencentHandler : NSObject

/// 初始化sdk
- (void)registerApp;

/// 处理应用拉起协议
+ (BOOL)HandleOpenURL:(NSURL *)url;

/// 处理应用的UniversalLink拉起协议
+ (BOOL)handleUniversalLink:(NSURL *)url;


///是否安装QQ
- (BOOL)installQQ;

///分享网页
- (void)shareWebPage:(ZYThirdShareInfo *)info platform:(ZYSharePlatform)platform completion:(__nullable ZYThirdShareBlock)completion;

///分享图片, 仅支持QQ好友
- (void)shareImage:(UIImage *)image thumbImage:(UIImage *)thumbImage  completion:(__nullable ZYThirdShareBlock)completion;
///分享文本, 仅支持QQ好友
- (void)shareText:(NSString *)text completion:(__nullable ZYThirdShareBlock)completion;


/// 登录
- (void)login:(__nullable ZYThirdLoginBlock)completion;

@end

NS_ASSUME_NONNULL_END
